import request from '@/utils/request'
import qs from 'qs'
// 查询业务类型列表
export const gettablelistapi = params => request.get('/core/security/biz-role/list', { params })
// 查询系统角色列表
export const getjueseapi = () => request.get('/core/security/role/system/list')
// 创建业务类型
export const postaddedapi = data => request.post('/core/security/biz-role', qs.stringify(data))
// 查询业务类型信息
export const getxinxiapi = params => request.get('/core/security/biz-role', { params })
// 修改业务类型
export const putxinxiapi = data => request.post('/core/security/biz-role/put', qs.stringify(data))
// 业务类型版本发布
export const postfabuapi = data => request.post('/core/security/biz-role/deploy', qs.stringify(data))
// 删除业务类型
export const delleixinapi = data => request.post('/core/security/biz-role/delete', qs.stringify(data))
//  查询业务类型版本列表
export const getbanbenleixingapi = params => request.get('/core/security/biz-role/version/list', { params })
// 查询业务类型绑定设备模型下拉框数据
export const getleixingxialaapi = () => request.get('/core/dictionary/combo-item/list?dictType=BizRoleDeviceModel')
// 获取功能权限
export const getxiangqingqpi = () => request.get(`/core/security/function/tree`)
// 根据角色查询权限
export const getquanxianapi = params => request.get('core//security/role/function/list', { params })
